gtk4.git
11 years agoGtkPathBar: Make recoloring symbolics work
Matthias Clasen [Wed, 13 Aug 2014 13:29:40 +0000 (09:29 -0400)]
GtkPathBar: Make recoloring symbolics work

We were only recreating the icons the very first time the theme
changed, and not every time as was intended.

11 years agowidget-factory: Avoid a compiler warning
Matthias Clasen [Wed, 13 Aug 2014 13:19:09 +0000 (09:19 -0400)]
widget-factory: Avoid a compiler warning

This is adjusting to the draw_layer signature change.

11 years agowidget-factory: Add a missing style class
Matthias Clasen [Wed, 13 Aug 2014 13:16:09 +0000 (09:16 -0400)]
widget-factory: Add a missing style class

Unfortunately, constructing image-only buttons by just adding
the image as a child does not give us the image-button style
class. Add it manually.

11 years agoGtkTextView: Preserve the cairo context around draw_layer
Matthias Clasen [Wed, 13 Aug 2014 13:14:22 +0000 (09:14 -0400)]
GtkTextView: Preserve the cairo context around draw_layer

Otherwise, draw_layer might unintentionally wreak havoc on the
regular drawing that happens between the two draw_layer calls.

11 years agoGtkTextView: Change draw_layer signature
Matthias Clasen [Wed, 13 Aug 2014 13:09:22 +0000 (09:09 -0400)]
GtkTextView: Change draw_layer signature

Vfuncs should really take 'this' of the right type - the type
that the vfunc is added in.

11 years agoAdwaita: widget edge for inline toolbars
Lapo Calamandrei [Wed, 13 Aug 2014 12:27:31 +0000 (14:27 +0200)]
Adwaita: widget edge for inline toolbars

11 years agowidget-factory: Don't say 'Etched out' twice
Matthias Clasen [Wed, 13 Aug 2014 02:21:08 +0000 (22:21 -0400)]
widget-factory: Don't say 'Etched out' twice

There's no difference between these shadow types anymore, but
it is irritating to see the same label twice.

11 years agowidget-factory: Improve the flow box example
Matthias Clasen [Wed, 13 Aug 2014 02:14:21 +0000 (22:14 -0400)]
widget-factory: Improve the flow box example

Make the selection actually do something. This is also an opportunity
to test the new draw-layer vfunc in GtkTextView.

11 years agowidget-factory: Add a flowbox example
Matthias Clasen [Wed, 13 Aug 2014 00:22:14 +0000 (20:22 -0400)]
widget-factory: Add a flowbox example

This is now really polished yet, but will let us work towards
'responsive grid'.

11 years agowidget-factory: Make dialogs non-resizable
Matthias Clasen [Tue, 12 Aug 2014 23:10:47 +0000 (19:10 -0400)]
widget-factory: Make dialogs non-resizable

They have no reason to be.

11 years agowidget-factory: Don't use rules-hint
Matthias Clasen [Tue, 12 Aug 2014 23:06:43 +0000 (19:06 -0400)]
widget-factory: Don't use rules-hint

11 years agowayland: Initialize cursor cache earlier
Matthias Clasen [Tue, 12 Aug 2014 17:41:56 +0000 (13:41 -0400)]
wayland: Initialize cursor cache earlier

Without this, I was getting a crash because the theme change
function was trying to iterate over the hash table before
it was created.

11 years agoFix symbolic-icon-translucent-color reftest
Alexander Larsson [Tue, 12 Aug 2014 13:43:48 +0000 (15:43 +0200)]
Fix symbolic-icon-translucent-color reftest

When using the pre-rendered png symbolics it seems that we're off a
tiny bit in a few of the pixels on the antialiased borders of a
stroke. To fix this we switch the icon to media-playback-stop-symbolic
which has no such antialiased borders.

I don't quite understand why the pixels are off, this needs more
research.

https://bugzilla.gnome.org/show_bug.cgi?id=734668

11 years agoChange way alpha is used when recoloring symbolics
Alexander Larsson [Tue, 12 Aug 2014 07:17:59 +0000 (09:17 +0200)]
Change way alpha is used when recoloring symbolics

If the foreground color has an alpha != 1 we used to just pass that into
the svg. This is useful to e.g. render an insensitive icon. However,
that is not an ideal model for symbolics. For instance, if the icon uses
overlapping areas when drawing, expecting these to be opaque then the
transparent color will result in a different alpha value for the overlapping
area. Also, non-foreground symbolic colors are still rendered opaque, and
the recoloring of pngs can't handle transparent colors.

So, instead we extract any alpha from the foreground, render using the
opaque colors and then apply the foreground alpha to the entire result.
This means we get an even transparency, even for other colors, and we
can apply alpha for the pngs too.

https://bugzilla.gnome.org/show_bug.cgi?id=734668

11 years agoGtkIconHelper: Short circuit _gtk_icon_helper_get_size in some cases
Alexander Larsson [Tue, 12 Aug 2014 10:34:12 +0000 (12:34 +0200)]
GtkIconHelper: Short circuit _gtk_icon_helper_get_size in some cases

_gtk_icon_helper_get_size() is often used during size request and may
not necessary mean that the icon will be displayed immediately. In
many common cases we know the size without having to ensure a surface.
In many cases this means we can avoid loading an icon until needed, and
in the case of stateless IconHelpers such as GtkCellRendererPixbuf this
is very important as otherwise it will constantly be reloading icons
if the displayed set is larger than the in-memory icon cache.

https://bugzilla.gnome.org/show_bug.cgi?id=734651

11 years agostack: Ensure the bin window has an evmask suitable to windowless children
Carlos Garnacho [Mon, 11 Aug 2014 14:49:46 +0000 (16:49 +0200)]
stack: Ensure the bin window has an evmask suitable to windowless children

If a child has set_has_window == FALSE, it purely relies on the events set on
the parent window, for which the bin window used to just ensure the exposure
mask, eating all input events.

https://bugzilla.gnome.org/show_bug.cgi?id=734357

11 years agowidget: Include event controllers' event mask on gtk_widget_get_events()
Carlos Garnacho [Mon, 11 Aug 2014 14:44:51 +0000 (16:44 +0200)]
widget: Include event controllers' event mask on gtk_widget_get_events()

gtk_widget_get_events() must indeed tell about events enabled purely through
a GtkEventController, those events will most surely trigger event handlers.

https://bugzilla.gnome.org/show_bug.cgi?id=734357

11 years agoGtkSpinButton: Only notify 'adjustment' if the property changed
Debarshi Ray [Tue, 12 Aug 2014 09:54:29 +0000 (11:54 +0200)]
GtkSpinButton: Only notify 'adjustment' if the property changed

https://bugzilla.gnome.org/show_bug.cgi?id=734649

11 years agowidget-factory: Add a reset button to the notification
Debarshi Ray [Mon, 11 Aug 2014 21:14:34 +0000 (23:14 +0200)]
widget-factory: Add a reset button to the notification

Change the initial value to something that is not a multiple of 3, so
that dismissing the notification on reset makes sense. Let's use 50
because that is already being used elsewhere.

https://bugzilla.gnome.org/show_bug.cgi?id=734614

11 years agowidget-factory: Turn off focus-on-click for notification close button
Debarshi Ray [Mon, 11 Aug 2014 20:44:37 +0000 (22:44 +0200)]
widget-factory: Turn off focus-on-click for notification close button

... because that is what most applications are doing. So lets do the
same thing for the sake of consistency and setting a good example.

https://bugzilla.gnome.org/show_bug.cgi?id=734614

11 years agoReconstruct a missing file
Matthias Clasen [Mon, 11 Aug 2014 20:23:41 +0000 (16:23 -0400)]
Reconstruct a missing file

Sadly I had forgotten to add selectionmode.ui to git.
Here is a reconstructed version that seems to work.

11 years agotreeview: Check the selected node active flag before maybe starting rubberband
Carlos Garnacho [Mon, 11 Aug 2014 16:02:12 +0000 (18:02 +0200)]
treeview: Check the selected node active flag before maybe starting rubberband

This check used to be present in the pre-gestures code, but was unintentionally
removed when splitting code into drag/multiclick gestures. The policy used to
be that if clicking happened on an already selected node, DnD would happen
instead of rubberband selection, so this behavior is resuscitated.

https://bugzilla.gnome.org/show_bug.cgi?id=734143

11 years agoBump version
Matthias Clasen [Sun, 10 Aug 2014 23:16:33 +0000 (19:16 -0400)]
Bump version

11 years ago3.13.6
Matthias Clasen [Sun, 10 Aug 2014 12:00:42 +0000 (08:00 -0400)]
3.13.6

11 years agoFix reftests for builddir != srcdir
Matthias Clasen [Sun, 10 Aug 2014 23:05:50 +0000 (19:05 -0400)]
Fix reftests for builddir != srcdir

Make gtk-reftest consult the REFTEST_MODULE_DIR environment
variable to find out where to look for modules, and fix the
libtool hack to construct the .libs subdirectory correctly.

11 years agoUpdate DISTCHECK_CONFIGURE_ARGS
Matthias Clasen [Sun, 10 Aug 2014 19:20:51 +0000 (15:20 -0400)]
Update DISTCHECK_CONFIGURE_ARGS

The --disable-rebuilds option does not exist anymore, so remove
it. At the same time, add --enable-installed-tests.

11 years agoFix animation-direction reftest
Matthias Clasen [Sun, 10 Aug 2014 14:55:03 +0000 (10:55 -0400)]
Fix animation-direction reftest

This was another victim of clipping changes - the labels were
overdrawing each other, leading to test failure. Prevent this
by separating the grid columns.

11 years agowayland: Remove overly complex cursor cache
Jasper St. Pierre [Sun, 10 Aug 2014 16:15:40 +0000 (12:15 -0400)]
wayland: Remove overly complex cursor cache

11 years agoGtkToolbar: Set clip
Matthias Clasen [Sun, 10 Aug 2014 11:53:59 +0000 (07:53 -0400)]
GtkToolbar: Set clip

This allows outset box shadows to work on toolbars.

https://bugzilla.gnome.org/show_bug.cgi?id=734526

11 years agoreftests: Make textview-margins pass in make check
Matthias Clasen [Sun, 10 Aug 2014 11:41:53 +0000 (07:41 -0400)]
reftests: Make textview-margins pass in make check

I found that setting margins to zero makes the textview clip
away some overshooting pixels. So, instead of a 0/10 split,
do this test with a 2/8 split of margins, to avoid the clipping
issue.

11 years agoSkip focus tests in make check
Matthias Clasen [Sun, 10 Aug 2014 11:08:39 +0000 (07:08 -0400)]
Skip focus tests in make check

These require a window manager to work, and we currently don't
run one when we run make check tests under Xvfb.

11 years agoAvoid "pkg-config --atleast-version"
Simon McVittie [Sat, 9 Aug 2014 14:17:44 +0000 (15:17 +0100)]
Avoid "pkg-config --atleast-version"

AM_PATH_GTK_3_0([3.4], [], [], [gthread]) results in calling
"pkg-config --atleast-version 3.4 gtk+-3.0 gthread-2.0".

With pkg-config 0.28, that test fails, because the version of
gthread-2.0 is smaller than 3.4. This appears to be a behaviour
change since 0.26, but matches what the documentation said in 0.26.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=641638
Bug-Debian: https://bugs.debian.org/756476
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
11 years agoUpdates for 3.13.6
Matthias Clasen [Sat, 9 Aug 2014 11:13:27 +0000 (13:13 +0200)]
Updates for 3.13.6

11 years agoTrivial: Use g_clear_object more
Matthias Clasen [Sat, 9 Aug 2014 08:13:55 +0000 (10:13 +0200)]
Trivial: Use g_clear_object more

It no longer has atomic overhead, so we can use it everywhere.

11 years agoAdwaita: GtkSwitch size reduction and tweaks
Lapo Calamandrei [Fri, 8 Aug 2014 21:31:33 +0000 (23:31 +0200)]
Adwaita: GtkSwitch size reduction and tweaks

See https://bugzilla.gnome.org/show_bug.cgi?id=734485

11 years agoOnly show title button separator when there is something to separate
Nikita Churaev [Tue, 6 May 2014 10:44:33 +0000 (14:44 +0400)]
Only show title button separator when there is something to separate

https://bugzilla.gnome.org/show_bug.cgi?id=729636

11 years agoRevert "Adwaita: comment out the header-bar separator"
Matthias Clasen [Fri, 8 Aug 2014 20:35:48 +0000 (22:35 +0200)]
Revert "Adwaita: comment out the header-bar separator"

This reverts commit b4e7ada6ac52b9930ba8d14a5f4d5d3a009cf163.

11 years agoMake focus tests session-exclusive
Matthias Clasen [Fri, 8 Aug 2014 20:15:02 +0000 (22:15 +0200)]
Make focus tests session-exclusive

Otherwise, tests running in parallel will steal the focus that
we are trying to test.

11 years agoAdd a selection mode testcase
Matthias Clasen [Fri, 8 Aug 2014 11:28:27 +0000 (13:28 +0200)]
Add a selection mode testcase

This shows what one currently has to do manually to get the typical
selection mode with blue headerbar and checkboxes in list rows.
The goal is to make this easier.

11 years agoAdwaita: pushed button shadows tweakings
Lapo Calamandrei [Fri, 8 Aug 2014 08:11:11 +0000 (10:11 +0200)]
Adwaita: pushed button shadows tweakings

11 years agoHandle ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET
Руслан Ижбулатов [Wed, 6 Aug 2014 10:33:47 +0000 (10:33 +0000)]
Handle ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agoMSVC Build Files: Use Real GTK+ Version
Chun-wei Fan [Thu, 7 Aug 2014 15:11:34 +0000 (23:11 +0800)]
MSVC Build Files: Use Real GTK+ Version

Make the Visual C++-related build files contain the actual GTK+ version, by
generating them during the configure stage and dist'ing them in the release
tarballs.  This is especially important for builds of introspection files,
as one may need to look at the release version of GTK+ in those files.

11 years agoMSVC Builds: Apply Visual Style for Win32 Print Dialog
Chun-wei Fan [Thu, 7 Aug 2014 15:02:13 +0000 (23:02 +0800)]
MSVC Builds: Apply Visual Style for Win32 Print Dialog

Define ISOLATION_AWARE_ENABLED for the build of the GTK DLL so that visual
style can be applied to the Windows print dialog for all applications using
gtkprintoperation.

Update the script for the generation of gtk-win32.rc for MSVC to not try to
embed the manifest from it (but embed libgtk3.manifest by including it in
the project files, as we are now doing), and embedding the manifest file is
really not supported in MSVC 2010 and later.

Also fix up formatting in the GTK DLL projects.

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agoAdwaita: progressbar background in scale highlight
Lapo Calamandrei [Thu, 7 Aug 2014 12:17:50 +0000 (14:17 +0200)]
Adwaita: progressbar background in scale highlight

11 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 7 Aug 2014 11:46:40 +0000 (13:46 +0200)]
Updated Basque language

11 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Thu, 7 Aug 2014 11:43:15 +0000 (13:43 +0200)]
Updated Basque language

11 years agoAdd missing include to gtk-win32.rc
Руслан Ижбулатов [Wed, 6 Aug 2014 08:27:42 +0000 (08:27 +0000)]
Add missing include to gtk-win32.rc

Otherwise ISOLATIONAWARE_MANIFEST_RESOURCE_ID and RT_MANIFEST constants
can't be expanded.

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agodrag: add missing introspection annotations
Ray Strode [Tue, 5 Aug 2014 14:22:03 +0000 (10:22 -0400)]
drag: add missing introspection annotations

gtk_gesture_drag_get_start_point and gtk_gesture_drag_get_offset
have out args that need to be annotated.

This commit adds the (out) and (nullable) annotations as appropriate.

https://bugzilla.gnome.org/show_bug.cgi?id=734292

11 years agoUpdated Slovenian translation
Matej Urbančič [Wed, 6 Aug 2014 12:17:10 +0000 (14:17 +0200)]
Updated Slovenian translation

11 years agoAdwaita: comment out the header-bar separator
Lapo Calamandrei [Wed, 6 Aug 2014 11:33:17 +0000 (13:33 +0200)]
Adwaita: comment out the header-bar separator

11 years agoAdwaita: linked logic surgery
Lapo Calamandrei [Wed, 6 Aug 2014 11:20:45 +0000 (13:20 +0200)]
Adwaita: linked logic surgery

11 years agoAdwaita: linked combos
Lapo Calamandrei [Wed, 6 Aug 2014 10:23:47 +0000 (12:23 +0200)]
Adwaita: linked combos

11 years agoMSVC Builds: Create libgtk3.manifest
Chun-wei Fan [Wed, 6 Aug 2014 07:42:23 +0000 (15:42 +0800)]
MSVC Builds: Create libgtk3.manifest

Use the Python script that was used to create gtk-win32.rc from
gtk-win32.rc.in to similarly create libgtk3.manifest.  As the wildcard
character can be used for all architectures, use that.

The libgtk3.manifest file needs to be specified explicitly in the projects,
so that it will be recognized and built into the GTK dll, so update the
project files as well on this part.

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agogdkwindow-win32.c: Fix build on Visual C++
Chun-wei Fan [Wed, 6 Aug 2014 05:06:35 +0000 (13:06 +0800)]
gdkwindow-win32.c: Fix build on Visual C++

Since MSVC is more strict about the types that we try to do a compare, cast
old_ptr as HWND, as we know that it is a pointer...

https://bugzilla.gnome.org/show_bug.cgi?id=733768

11 years agogtk/gtkprintoperation-win32.c: Fix Missed Include
Chun-wei Fan [Wed, 6 Aug 2014 04:55:09 +0000 (12:55 +0800)]
gtk/gtkprintoperation-win32.c: Fix Missed Include

We need to include gtkprivate.h for _gtk_load_dll_with_libgtk3_manifest().

11 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 5 Aug 2014 19:13:43 +0000 (21:13 +0200)]
Updated Slovenian translation

11 years agoMake sure native W32 print dialog uses visual styles
Руслан Ижбулатов [Tue, 29 Jul 2014 08:18:32 +0000 (08:18 +0000)]
Make sure native W32 print dialog uses visual styles

For that to happen the libgtk3 is embedded with a manifest that requests
common controls library 6.x, and GTK lazily calls InitCommonControlsEx()
to initialize those. Then this manifest is used to temporarily override
the process activation contest when loading comdlg32 (which contains the
code for the print dialog), ensuring that it too depends on common
controls 6.x, even if the application that uses GTK does not.

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agoWhen wrapping a foreign W32 window, don't forget to store its HWND
Руслан Ижбулатов [Fri, 25 Jul 2014 23:12:24 +0000 (23:12 +0000)]
When wrapping a foreign W32 window, don't forget to store its HWND

When that window is later used as a parent for a GDK child, the call to
CreateWindow*() will fail, because its HWND is 0.

https://bugzilla.gnome.org/show_bug.cgi?id=733768

11 years agoinspector: Add a switch to turn off animations
Matthias Clasen [Mon, 4 Aug 2014 22:03:37 +0000 (00:03 +0200)]
inspector: Add a switch to turn off animations

This may be useful in some places to check that application-specific
animations respect this setting.

11 years agoSuppress a warning from SetWindowLongPtr()
Руслан Ижбулатов [Sat, 2 Aug 2014 15:48:03 +0000 (15:48 +0000)]
Suppress a warning from SetWindowLongPtr()

https://bugzilla.gnome.org/show_bug.cgi?id=726224

11 years agoGtkSwitch: Initialize offset when beginning animation
Matthias Clasen [Mon, 4 Aug 2014 12:35:15 +0000 (14:35 +0200)]
GtkSwitch: Initialize offset when beginning animation

handle_x always corresponds to the visible position of the handle,
which is where we want to start the animation. Without this, repeated
keyboard activation will not always animate.

11 years agoGtkSwitch: Update handle_x in size-allocate
Matthias Clasen [Mon, 4 Aug 2014 12:32:40 +0000 (14:32 +0200)]
GtkSwitch: Update handle_x in size-allocate

Since we are storing positions here that depend on the allocation,
we need to update them in size-allocate. This fixes incorrect
positioning of the handle if the switch is active initially.

https://bugzilla.gnome.org/show_bug.cgi?id=734213

11 years agoGtkSwitch: Don't store dest_offset
Matthias Clasen [Mon, 4 Aug 2014 12:30:23 +0000 (14:30 +0200)]
GtkSwitch: Don't store dest_offset

Instead, calculate it on the spot in the tick callback, and
update handle_x in gtk_switch_set_active, based on the new
active property.

11 years agoGtkSwitch: End animations on finalize
Matthias Clasen [Mon, 4 Aug 2014 12:25:10 +0000 (14:25 +0200)]
GtkSwitch: End animations on finalize

Handle the unlikely case that a switch gets finalized while its
toggle animation is running.

11 years agoGtkSwitch: End animation in set_active
Matthias Clasen [Mon, 4 Aug 2014 12:21:59 +0000 (14:21 +0200)]
GtkSwitch: End animation in set_active

End any running toggle animation before setting the set,
otherwise things get confused.

11 years agoGtkSwitch: Also animate for keyboard activation
Matthias Clasen [Mon, 4 Aug 2014 11:56:39 +0000 (13:56 +0200)]
GtkSwitch: Also animate for keyboard activation

11 years agogtk-encode-symbolic-svg: Fix build with -Werror=format-security
Rico Tzschichholz [Mon, 4 Aug 2014 11:31:34 +0000 (13:31 +0200)]
gtk-encode-symbolic-svg: Fix build with -Werror=format-security

11 years agoUpdated Greek translation
MarMav [Mon, 4 Aug 2014 10:53:36 +0000 (10:53 +0000)]
Updated Greek translation

11 years agowidget-factory: Make one switch start out active
Matthias Clasen [Mon, 4 Aug 2014 08:12:19 +0000 (10:12 +0200)]
widget-factory: Make one switch start out active

This nicely shows off
https://bugzilla.gnome.org/show_bug.cgi?id=734213

11 years agotests: Drop use of deprecated api
Matthias Clasen [Mon, 4 Aug 2014 08:11:50 +0000 (10:11 +0200)]
tests: Drop use of deprecated api

Don't use gtk_tree_view_set_rules_hint anymore.

11 years agogtk-demo: Drop use of deprecated api
Matthias Clasen [Mon, 4 Aug 2014 08:08:38 +0000 (10:08 +0200)]
gtk-demo: Drop use of deprecated api

There were several uses of gtk_tree_view_set_rules_hint here.
Just drop them, the theme was ignoring them anyway.

11 years agoAdd a11y state tests
Matthias Clasen [Wed, 30 Jul 2014 19:25:04 +0000 (21:25 +0200)]
Add a11y state tests

This adds a new test which can be scripted to trigger various
event and action sequences, and record state changes in the
accessibility layer.

So far, there are a few tests verifying state changes when
focus changes.

Related to https://bugzilla.gnome.org/show_bug.cgi?id=715176

11 years agoMSVC Builds: Build gtk-encode-symbolic-svg
Chun-wei Fan [Mon, 4 Aug 2014 07:07:39 +0000 (15:07 +0800)]
MSVC Builds: Build gtk-encode-symbolic-svg

This utility would likely be useful for Windows builds of GTK+, given the
reasons Alex cited for coming up with this utility[1], and MSVC build
support for librsvg is not available at this time (possible, but not
implemented yet).

[1]: https://bugzilla.gnome.org/show_bug.cgi?id=730450

11 years agoMSVC Builds: Add Script to Generate gtk-win32.rc
Chun-wei Fan [Mon, 4 Aug 2014 05:34:15 +0000 (13:34 +0800)]
MSVC Builds: Add Script to Generate gtk-win32.rc

In bug 733773, gtk-win32.rc was removed from the dist in the attempt to
make the print dialog on Windows themed, so this script was added so that
the gtk-win32.rc file can be generated during the Visual Studio builds of
GTK+ from the autotools scripts.  This is also intended for filling in the
arch of the build for MSVC builds for the manifest that is also required
for fixing bug 733773.  Python is used as it is already needed for

This is done as a custom build rule in the Visual Studio projects so that
it is easy to clean and rebuild gtk-win32.rc upon an update.

https://bugzilla.gnome.org/show_bug.cgi?id=733773

11 years agoFix the build
Matthias Clasen [Sun, 3 Aug 2014 22:20:40 +0000 (00:20 +0200)]
Fix the build

Quoting accident. "echo -e" is not a command that the shell knows,
echo -e is.

11 years agoFix building quartz backend
TingPing [Mon, 23 Jun 2014 23:04:56 +0000 (19:04 -0400)]
Fix building quartz backend

These were some api changes introduced in:
d930716
48db841
f6ee007

https://bugzilla.gnome.org/show_bug.cgi?id=732137

11 years agolistbox: Add missing ::row-selected emissions
Florian Müllner [Thu, 8 May 2014 09:42:56 +0000 (11:42 +0200)]
listbox: Add missing ::row-selected emissions

Rows are not necessarily selected via select_row_internal(), add
the missing signal emissions there. Also the signal should be emitted
when removing the selection altogether.

https://bugzilla.gnome.org/show_bug.cgi?id=729809

11 years agoAdd missing paramter to gtk-menu-tracker-new.
John Ralls [Sun, 3 Aug 2014 20:25:21 +0000 (13:25 -0700)]
Add missing paramter to gtk-menu-tracker-new.

11 years agoReplace deprecated gtk_application_add_accelerator
John Ralls [Sun, 3 Aug 2014 20:24:16 +0000 (13:24 -0700)]
Replace deprecated gtk_application_add_accelerator

With new gtk_application_set_accels_for_action.

11 years agoFix build of resource files on OS-X
John Ralls [Sun, 3 Aug 2014 00:55:41 +0000 (17:55 -0700)]
Fix build of resource files on OS-X

OS-X's 'echo' command does not have a -e option, so it was included in the files.

11 years agoAdd gtk_application_get_actions_for_accel()
Ryan Lortie [Sun, 3 Aug 2014 18:27:51 +0000 (20:27 +0200)]
Add gtk_application_get_actions_for_accel()

This counterpart to gtk_application_get_accels_for_action() lets you
find out if a particular accelerator has one or more actions associated
with it. This might be useful from an accelerator editor or plugin
system to prevent the the installation of conflicting accelerators.

https://bugzilla.gnome.org/show_bug.cgi?id=721367

11 years agoGtkTreeView: Avoid deprecation warnings
Matthias Clasen [Sun, 3 Aug 2014 18:10:13 +0000 (20:10 +0200)]
GtkTreeView: Avoid deprecation warnings

11 years agogtk/Makefile.am: fix gtk-encode-symbolic-svg build for jhbuild
Pietro Gagliardi [Sun, 3 Aug 2014 16:14:28 +0000 (12:14 -0400)]
gtk/Makefile.am: fix gtk-encode-symbolic-svg build for jhbuild

Currently, jhbuild-ing GTK+ on Ubuntu 14.04 LTS and gcc 4.8.2 errors out with
/usr/bin/ld: encodesymbolic.o: undefined reference to symbol 'g_file_new_for_path'
/opt/gnome/lib/libgio-2.0.so.0: error adding symbols: DSO missing from command line
when trying to build gtk-encode-symbolic-svg. This is because $(GTK_DEP_LIBS) isn't defined in $(gtk_encode_symbolic_svg_LDADD) in gtk/Makefile.am. This patch should fix that.

Thanks to b4n and gregier in irc.gimp.net/#gtk+ for help.

https://bugzilla.gnome.org/show_bug.cgi?id=734201

11 years agotextview: Avoid relocating adjustments on ::size-allocate while these are animating
Carlos Garnacho [Mon, 21 Jul 2014 19:16:32 +0000 (21:16 +0200)]
textview: Avoid relocating adjustments on ::size-allocate while these are animating

An animation may be scheduled while the textview content changed in size, so the resize
queued would just unset the animation and set the adjusments with a current value,
defeating gtk_text_view_scroll_to_iter(). In this case, just avoid the adjustment change,
as there is a target value on the way.

https://bugzilla.gnome.org/show_bug.cgi?id=733406

11 years agoUpdated POTFILES.in
Piotr Drąg [Sun, 3 Aug 2014 18:11:09 +0000 (20:11 +0200)]
Updated POTFILES.in

11 years agowindow: Update popover positions on ::size-allocate
Carlos Garnacho [Fri, 1 Aug 2014 15:38:42 +0000 (17:38 +0200)]
window: Update popover positions on ::size-allocate

Popovers may get relocations optimized away if only x/y changed
in the GtkAllocation. So make sure the toplevel updates popover
positions on all situations.

https://bugzilla.gnome.org/show_bug.cgi?id=729140

11 years agoAdd missing include for setlocale
Paolo Borelli [Sun, 3 Aug 2014 09:53:56 +0000 (11:53 +0200)]
Add missing include for setlocale

11 years agoBug 729924 - Crash trying to print in OSX
John Ralls [Mon, 26 May 2014 00:01:24 +0000 (17:01 -0700)]
Bug 729924 - Crash trying to print in OSX

We should only use the PageSize option from the ppd if it
actually exists.

11 years agowidget-factory: Add a linked combobox example
Matthias Clasen [Sun, 3 Aug 2014 09:06:18 +0000 (11:06 +0200)]
widget-factory: Add a linked combobox example

This came up in https://bugzilla.gnome.org/show_bug.cgi?id=733979

11 years agoGtkSwitch: implement animation
Paolo Borelli [Sun, 3 Aug 2014 08:20:38 +0000 (10:20 +0200)]
GtkSwitch: implement animation

11 years agoGtkSwitch: remove unused assignment
Paolo Borelli [Sun, 3 Aug 2014 08:17:49 +0000 (10:17 +0200)]
GtkSwitch: remove unused assignment

11 years agoEnsure an image-missing icon is available
Matthias Clasen [Sun, 3 Aug 2014 08:02:52 +0000 (10:02 +0200)]
Ensure an image-missing icon is available

It is bad if the image that is used as a fallback for missing
images goes missing itself, so include it as a resource. This
way, it will always be available.

11 years agoEmbed manifest into gtk-update-icon-cache.exe
Руслан Ижбулатов [Thu, 31 Jul 2014 10:05:29 +0000 (10:05 +0000)]
Embed manifest into gtk-update-icon-cache.exe

This way it doesn't need to be installed alongside it.

https://bugzilla.gnome.org/show_bug.cgi?id=705054

11 years agotreeview: Deprecated rules-hint
Emmanuele Bassi [Thu, 17 Jul 2014 11:53:01 +0000 (12:53 +0100)]
treeview: Deprecated rules-hint

The rules-hint property has always been a fairly bad application API, as
it set some wrong expectations for the developers; deferring to the
theme makes it impossible to design application reliably, and if this is
a usability setting we should either impose this setting on every theme,
or simply drop it.

Our own default theme does not honour the zebra striping, which makes
this function even more questionable.

In practice, usability studies on zebra striping have demonstrated that
alternating colors on a list it improves readability just as much as
clear ruling between rows, or by visually differentiating the selected
row. Zebra striping improves readability (or, at least, it does not
hinder it) on static displays, like a table on paper or a document; on a
dynamic display, like an application's UI, there are different
strategies that yield similar, if not better, results.

https://bugzilla.gnome.org/show_bug.cgi?id=733312

11 years agolistboxrowaccessible: Avoid assertion failure
Timm Bäder [Sat, 26 Jul 2014 11:38:55 +0000 (13:38 +0200)]
listboxrowaccessible: Avoid assertion failure

The next call to gtk_list_box_get_selection_mode just expected the
GtkListBoxRow's parent to be a GtkListBox and failed when the row was
added to something other than a GtkListBox.

https://bugzilla.gnome.org/show_bug.cgi?id=733782

11 years agoAdd a man page for gtk-encode-symbolic-svg
Matthias Clasen [Sun, 3 Aug 2014 00:45:16 +0000 (02:45 +0200)]
Add a man page for gtk-encode-symbolic-svg

11 years agoicon-theme: Support recolorable .symbolic.png files
Alexander Larsson [Wed, 30 Jul 2014 16:05:48 +0000 (18:05 +0200)]
icon-theme: Support recolorable .symbolic.png files

If an icon theme has a file called "foo-symbolic.symbolic.png" which
was converted from svg using gtk-encode-symbolic-svg we will read
it in an recolor, allowing symbolic icons without using librsvg.

https://bugzilla.gnome.org/show_bug.cgi?id=730450

11 years agoAdd gtk-encode-symbolic-svg
Alexander Larsson [Tue, 20 May 2014 14:03:16 +0000 (16:03 +0200)]
Add gtk-encode-symbolic-svg

This utility loads a symbolic svg at a specified size and
renders a png file in a special format that can be recolored
later.

https://bugzilla.gnome.org/show_bug.cgi?id=730450

11 years agoinspector: Add GtkTreeSelection to the object tree
Matthias Clasen [Sat, 2 Aug 2014 23:28:23 +0000 (01:28 +0200)]
inspector: Add GtkTreeSelection to the object tree

It is not accessible, otherwise.

11 years agowindow: Only avoid queueing resizes if the popover position didn't change
Carlos Garnacho [Fri, 1 Aug 2014 14:50:59 +0000 (16:50 +0200)]
window: Only avoid queueing resizes if the popover position didn't change

If the same position is requested on a popover, it should at least ensure
the window is realized and raised, even if no resizes are queued on the
content. Otherwise other widgets being mapped might raise the windows over
the popover's if its original position is unchanged.

https://bugzilla.gnome.org/show_bug.cgi?id=734129